package com.shop.util;


import com.shop.vo.ResultVo;

/**
 * Created with IntelliJ IDEA. User: dpengpeng Date: 2018/5/18 Time: 22:36 Description:
 */
public class ResultUtil {

  public static ResultVo success(Object data) {
    return new ResultVo(0, "成功", data);
  }

  public static ResultVo error(){
    return new ResultVo(-1,"登陆失败",null);
  }
}
